package cn.bklovezz.yixiantong.ram.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@ApiModel(value = "注册登录用户的参数信息", description = "继承自登录用户的参数信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminRegisterLoginUser extends AdminLoginUser {
  @ApiModelProperty(value = "手机号", required = false)
  private String phone;

  @ApiModelProperty(value = "邮箱", required = false)
  private String email;

  @ApiModelProperty(value = "令牌", required = false)
  private String token;

  @ApiModelProperty(value = "头像", required = false)
  private String avatar;

  @ApiModelProperty(value = "令牌过期时间", required = false)
  private LocalDateTime expireTime;

  @NotNull
  @ApiModelProperty(value = "创建时间", required = true)
  private LocalDateTime createTime;

  @NotNull
  @ApiModelProperty(value = "更新时间", required = true)
  private LocalDateTime updateTime;
}
